package ooday04.homework;
//- Dog类：继承Animal、实现Swim接口，重写eat()、lookHome()、重写swim()
public class Dog extends Animal implements Swim{
    Dog(){
    }
    Dog(String name,String color,int age){

        super(name ,color,age);
    }
    void eat(){
        System.out.println("我叫"+name+"今年"+age+"岁了"+"我是"+color+"色的,就要骨头");
    }
    void lookHome(){
        System.out.println("我叫"+name+"今年"+age+"岁了"+"我是"+color+"色的,我要看家");
    }
    public void swim(){
        System.out.println("我叫"+name+"今年"+age+"岁了"+"我是"+color+"色的,喜欢游泳");
    }
}
